GET /api/admin/v1/campaigns/:id/sponsors
List of Sponsors

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "sponsors": [
    {
      "id": 269,
      "company_name": "27.07 14.59 TEST COMPANY for SPONSOR",
      "contact_name": "John Smith",
      "email": "john.sm123456@email.com",
      "phone": "+88 777-222-333",
      "campaign_id": 363,
      "amount": 0.0,
      "logo_s3_key": "0023994DF41808A6AE5E1C8B11ABFFAE.png"
     },...
  ]
}

GET /api/admin/v1/campaigns/:id/sponsors/:id
Update Sponsors

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "success": true
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer

sponsors
required

Validations:

  • Must be a Hash

sponsors[company_name]
required

Validations:

  • Must be a String

sponsors[contact_name]
optional

Validations:

  • Must be a String

sponsors[email]
optional

Validations:

  • Must be a String

sponsors[phone]
optional

Validations:

  • Must be a String

sponsors[amount]
optional

Validations:

  • Must be a String

sponsors[logo_s3_key]
optional

Validations:

  • Must be a String